package com.cskaoyan.day2.collection;

/**
 * @author Common-zhou
 * @since 2023-02-28 10:19
 */
public class UserDemo {
    public static void main(String[] args) {
        User user = new User();
        int hashCode = user.hashCode();

        // 如果没有重写hashCode  代表  User的地址
        System.out.println(hashCode);

        User user1 = new User();
        System.out.println(user1.hashCode());

        user1.name = "zs";

        System.out.println(user1.hashCode());
    }
}
